cmake_minimum_required(VERSION 3.16)
PROJECT(ut1)

MESSAGE(STATUS "message")

set(CMAKE_CXX_FLAGS "-pthread -g -Wall")

# link glog
link_directories(${THIRD_PARTY_PATH}/glog/build)
include_directories(${THIRD_PARTY_PATH}/glog/build
                    ${THIRD_PARTY_PATH}/glog/src)

# link googletest gmock
link_directories(${THIRD_PARTY_PATH}/googletest/build/lib)
include_directories(${THIRD_PARTY_PATH}/googletest/googletest/include
                    ${THIRD_PARTY_PATH}/googletest/googlemock/include)

# link emock
link_directories(${THIRD_PARTY_PATH}/emock/build/src/)
include_directories(${THIRD_PARTY_PATH}/emock/include)

set(SRC_FILES main.cpp)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin")

add_executable(ut1 ${SRC_FILES})
target_link_libraries(ut1 libglogtest.a libgmock.a libgtest.a libemock.a dl)
